set 'too small'.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
/* Periodic timer must be at least 0.9ms. */
if ( (period < 900000) && !one_shot )
{
- gdprintk(XENLOG_WARNING,
- "HVM_PlatformTime: program too small period %"PRIu64"\n",
- period);
+ if ( !test_and_set_bool(pt->warned_timeout_too_short) )
+ gdprintk(XENLOG_WARNING, "HVM_PlatformTime: program too "
+ "small period %"PRIu64"\n", period);
period = 900000;
}
bool_t one_shot;
bool_t do_not_freeze;
bool_t irq_issued;
+ bool_t warned_timeout_too_short;
#define PTSRC_isa 1 /* ISA time source */
#define PTSRC_lapic 2 /* LAPIC time source */
u8 source; /* PTSRC_ */